﻿using System;
using System.Collections.Generic;


namespace GridRegulator
{
    public struct Pos : IComparable<Pos>
    {
        public int I;
        public int J;

        public Pos(int i, int j)
        {
            I = i;
            J = j;
        }

        public int CompareTo(Pos that)
        {
            int ci = I.CompareTo(that.I);
            if (ci != 0) return ci;
            int cj = J.CompareTo(that.J);
            return cj;
        }
    }

    public class Pet : List<Pos>
    {
        public Pet()
        {
        }
    }

    public class PetList : List<Pet>
    {
        public PetList()
        {
        }
    }

    public interface IPetGrid
    {
        PetList Pets
        {
            get;
        }
        
        int this[int i, int j]
        {
            get;
        }

        int M
        {
            get;
        }
        int N
        {
            get;
        }
    }
}
